package org.jeecg.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.shop.entity.Discount;
import org.jeecg.modules.shop.mapper.DiscountMapper;
import org.jeecg.modules.shop.service.IDiscountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 优惠表
 * @Author: jeecg-boot
 * @Date: 2023-11-09
 * @Version: V1.0
 */
@Service
public class DiscountServiceImpl extends ServiceImpl<DiscountMapper, Discount> implements IDiscountService {

    @Autowired
    private DiscountMapper aDiscountMapper;

    @Override
    public List<Discount> selectByMainId(Integer mainId) {
        return aDiscountMapper.selectByMainId(mainId);
    }
}
